<?php if($this->beginCache("Slideshow", array("duration"=>0))){?>
<div class="widget">
<div id="slider-wrapper">
	<div class="slider-wrapper theme-default">
            <div class="ribbon"></div>
            <div id="slider" class="nivoSlider">
            <?php if(is_array($data)):?>
            <?php foreach ($data as $key => $value):?>
                <img src="<?php echo Yii::app()->params['banners_url'];?>/<?php echo $value->file_name;?>" alt="" />
            <?php endforeach;?>
            <?php endif;?>
            </div>
        </div>
</div>
</div>
<script type="text/javascript">
    $(window).load(function() {
        $('#slider').nivoSlider({
        	directionNav: true,
    		directionNavHide: true,
            });
    });
    </script>
<?php $this->endCache();}?>